﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CaifenWeb.UtilityCls;
using CF.Data.Entity.FrmMemberEntity;
using CF.Member.DAL.Member;
using Ext.Net.MVC;

namespace CaifenWeb.Areas.BgMgr.Controllers
{
    [BgAuthorize]
    public class MembersMgrController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public AjaxStoreResult GetAllUsers(int? start, int? limit)
        {
            FM_MemberDAL mdal = new FM_MemberDAL();
            caifendbEntities context = new caifendbEntities();
            int startNum = start ?? 0;
            int limitNum = limit ?? 30;
            List<FM_Member> memlist = mdal.GetAllUser(startNum, limitNum);
            return new AjaxStoreResult(memlist, memlist.Count);
        }
    }
}
